package ceri.m2.project.freebase;

import java.io.IOException;

public class Util {

	public String getFirstSentence(String paragraph)
	{
		return paragraph.split("\\.")[0];
	}
	
	public String removeTag(String input, String startTag)
	{
		return input.replaceAll(startTag, "");
	}
	
	public String removeParentheses(String input)
	{
		return input.replaceAll("\\(.*\\)", "");
	}
	
	public static void main(String[] args) throws IOException {
		Util util = new Util();
		String result = util.getFirstSentence("fghjklm (ghjklm).fghjklm");
		System.out.println(util.removeParentheses(result));
	}	
}
